//
//  WD_HomeDetailMessageCell.m
//  BUDING
//
//  Created by HanWoonYong on 16/4/6.
//  Copyright © 2016年 HanWoonYong. All rights reserved.
//

#import "WD_HomeDetailMessageCell.h"

@implementation WD_HomeDetailMessageCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[UILabel alloc] initWithFrame:CGRectZero];
        [self.contentView addSubview:self.title];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.title.frame = CGRectMake(0, 0, WIDTH, 40);
}

- (void)setMovieModel:(WD_MovieModel *)movieModel {
    _movieModel = movieModel;
    self.title.text = _movieModel.title;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
